﻿namespace NTLib.IOC.Exceptions
{
    using Core.Exceptions;
    using Core.Extensions;
    using Resources;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    /// <summary>
    /// Raised if IOContainer try to be attached if it's already attached.
    /// </summary>
    /// <seealso cref="NTLib.Core.Exceptions.NTLibException" />
    public sealed class IOContainerAlreadyAttachedException : NTLibException
    {
        #region Ctor

        /// <summary>
        /// Initializes a new instance of the <see cref="IOContainerAlreadyAttachedException"/> class.
        /// </summary>
        public IOContainerAlreadyAttachedException(string containerName, Exception inner = null)
            : base(ErrorMessages.ContainerAlreadyAttached.Argument(containerName), inner)
        {
                
        }

        #endregion
    }
}
